import java.util.ArrayList;
import java.util.Collections;


import employee.Employee;




public class comparable {
	public static void main(String [] args)
	{
		
	ArrayList<Employee> emplist = new ArrayList<Employee>();
	emplist.add(new Employee(10,"nagpur", "male","A"));
	emplist.add(new Employee(55,"pune", "female","B"));
	emplist.add(new Employee(37,"mumbai ", "male","C"));
	emplist.add(new Employee(34,"thane ", "male","D"));
	emplist.add(new Employee(12,"vijaynagar", "female","P"));
	System.out.println("unsorted : " + emplist);
	Collections.sort(emplist);
	System.out.println("sorted : " + emplist);
}

	
	

}
